{% extends "lottery/index.html" %}
{% block body %}

<div class="qbkj-cont">

    {% for contact in contacts %}
    <div class="kaij-boxer " >
        <a href="javascript:void(0);">
            {% if contact.open %}
            <span class="kj-icon-flag">今日开奖</span>
            {% endif %}
            <h1 class="kaij-tit">{{contact.logo}}<em>{{contact.code}}</em> <em>{{contact.date}}</em></h1>

            <div class="kaij-jg">
                <ul>
                    {% for red in contact.red_list %}
                    <li class="red-ball">{{red}}</li>
                    {% endfor %}
                    {% for orange in contact.orange_list %}
                    <li class="orange-ball">{{orange}}</li>
                    {% endfor %}
                    {% for blue in contact.blue_list %}
                    <li class="blue-ball">{{blue}}</li>
                    {% endfor %}
                    {% for solida in contact.solida_list %}
                    <li class="solida-ball">{{solida}}</li>
                    {% endfor %}

                </ul>
            </div>
        </a>

        <div class="other-link">
            <ul>
                <li><a  href="/old/?id={{contact.id}}"
                  >预测结果</a></li>

                <li><a  href="/will/?id={{contact.id}}"
                >下期预测</a></li>
         </ul>
        </div>

    </div>
    {% endfor %}

</div>

{% endblock body %}